<extend name="Public/base"/>
<block name="body">
  <form method="post" class="form-horizontal J_ajaxForm" action="{:U("")}">
      <div class="table_list">
         <table  width="100%" class="table table_from table-bordered">
          <tbody>
            <tr>
              <td>分类名称:</td>
              <td><input type="text" class="input" name="name" value="{$data.name}"><span class="red">*</span></td>
            </tr>
            
             <tr>
              <td>英文标识:</td>
              <td><input type="text" class="input" name="tag" value="{$data.tag}"><span class="red">*</span><span class="info">请用英文和下划线组合</span></td>
            </tr>
          
          
            <tr>
              <td>备注:</td>
              <td><textarea name="desc" rows="5" cols="57">{$data.desc}</textarea></td>
            </tr>
          </tbody>
        </table>
      </div>
       <if condition="$edit">
     <input type="hidden"  name="id"   value="{$data.id}"  /></if>
      <div class="form-actions">
      <button class="btn btn-info ajax-post"   target-form="J_ajaxForm" type="submit">  <if condition="$edit">更新<else/>添加</if></button>
      		 <a class="btn btn-return" href="__URL__" >返 回</a>
      </div>
    </form>
</block>